home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / SoundAndMusic / cmix / filters / ellipse.h < prev    next >
Text File  |  1988-07-19  |  384b  |  12 lines

  1. float FTEMP1;
  2. int ITEMP1;
  3. #define ELLIPSE(val,x,ps,c,xnorm,nsects)\
  4. for(ITEMP1=0;ITEMP1<nsects;ITEMP1++) {\
  5. FTEMP1 = x + c[ITEMP1][0] * ps[ITEMP1][0] + c[ITEMP1][2] * ps[ITEMP1][1] - c[ITEMP1][1] * ps[ITEMP1][2] - c[ITEMP1][3] * ps[ITEMP1][3];\
  6. ps[ITEMP1][1] = ps[ITEMP1][0];\
  7. ps[ITEMP1][0] = x;\
  8. ps[ITEMP1][3] = ps[ITEMP1][2];\
  9. ps[ITEMP1][2] = FTEMP1;\
  10. x = FTEMP1; }\
  11. val = x*xnorm;
  12.